using System;

namespace DemoNamespace
{
	[Serializable]
	public class ComplexNumber
	{
		private double _realPart;
		public double RealPart
		{
			get { return _realPart; }
			set { _realPart = value; }
		}

		private double _imaginaryPart;
		public double ImaginaryPart
		{
			get { return _imaginaryPart; }
			set { _imaginaryPart = value; }
		}

		public ComplexNumber() : this(0,0)
		{
			
		}
		public ComplexNumber(double real, double imaginary)
		{
			_realPart = real;
			_imaginaryPart = imaginary;
		}
		public override string ToString()
		{
			return _realPart + "+" + _imaginaryPart + "i";
		}

	}
}
